package com.cheyunkeji.er.view;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by GH
 * 2016/3/28.15:20
 */
public class XCToast {
    private static XCToast baseToast;

    Toast toast;

    private XCToast() {
    }

    public synchronized static XCToast getInstance() {
        if (baseToast == null) {
            baseToast = new XCToast();
        }
        return baseToast;
    }

    public Toast getToast(Context ctx) {
        if (toast == null) {
            toast = new Toast(ctx);
        }
        return toast;
    }


}
